home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / comm / bbs / fax_it_cnet.lzh / FAX-IT / fax-it.doc < prev    next >
Text File  |  1994-10-01  |  24KB  |  557 lines

  1.      Program: FAX-IT V3.0                  CNet Version: FAX-IT V3.0
  2.       Author: Glenn J. Schworak                          Malcolm Anderson
  3.               1710 Lee Street SE                         --???--
  4.               Salem, Oregon 97302 USA                    Stocton, California USA
  5.          BBS: (503) 581-6524                             (209) 464-0219
  6.        Voice: (503) 399-7518                             (???) ???-????
  7.         Fido: 1:3406/32                                  1:208/217
  8.  
  9.         Date: 04/26/1994
  10.  
  11.      Purpose: Allow Excelsior BBS to send FAX message through GPFax program
  12.  
  13.        Usage: Call FAX-IT as an ARexx door from Excelsior/CNet BBS
  14.  
  15.         NOTE: Read the CNet.Readme file for more information on setting up
  16.               this program on your CNet system. This version is for CNet only!
  17.  
  18.  
  19. This program was written to make more use of the FAX front door I am 
  20. running on my Excelsior BBS. I had another version that was never released 
  21. for general use when I was running a Falcon BBS, but it didn't convert over
  22. so I totaly re-wrote the programs and support files to make them easy to 
  23. use and Excelsior frendly.
  24.  
  25. I spent a lot of time figuring this stuff out and making it as easy as I 
  26. could to install and operate. If you like it, please make a donation as 
  27. mentioned at the bottom of this DOC file.
  28.  
  29.  
  30. ** NOTE **
  31.             If you are upgrading from V1.0 you will need to replace
  32.             all the files in the FAX-IT directory with the new ones and
  33.             redo all your changes you made.
  34.                                                     Sorry!
  35.  
  36.  
  37.  
  38. Special Note on GPFax
  39. =====================
  40.  
  41. GPFax has a little problem with reporting the true baud rate when it is
  42. locked at any given rate. Although you might use &W2 to get your modem to
  43. report the true connect rate, GPFax will not report that in any way to the
  44. outside world. It will display it when it connects but only to the screen
  45. if the GPFax screen is open.
  46.  
  47. Here is what you MUST do if you want GPFax to give the true baud rate to
  48. Excelsior when it passes control. There is no way around this and still get
  49. the real connection baud rate from GPFax. Sorry, I didn't write that program.
  50.  
  51.     1) You must start GPFax with the -B14400 option
  52.        (assuming you are using a 14400 or higher modem)
  53.        No other value will work accept maybe -B9600 for 9600 baud modems.
  54.        
  55.        IE: GPFax -B14400 -X600 -Y2 -Q
  56.  
  57.     2) You must NEVER try to lock the baud rate. Not with the -L option or
  58.        with the LOCKBAUD ARexx command. Once you lock the baud rate, you
  59.        have lost the ability to get GPFax to tell the truth.
  60.     
  61.     3) You must add the \N1 option to the modem INIT command. Best to be
  62.        placed near the end of the string. This will tell the modem to 
  63.        follow the computer's baud rate. So if the user connects at 2400 baud,
  64.        the modem will also talk to your computer at 2400 baud. This is what 
  65.        you want!!! If the modem was locked at 14400 or higher and GPFax tells
  66.        Excelsior that the user is calling at 2400 baud, Excelsior will send
  67.        trash to the modem at 2400 even though the modem is still at 14400.
  68.        See?
  69.     
  70.     4) If you attempt to set the -B option to anything other than 14400 or
  71.        9600, GPFax will assume you are locking the serial port and will not
  72.        give the correct baud rate. 
  73.  
  74. Personaly, I lock my baud rate at 57600 and I get users of high speed modems
  75. hitting speeds of 1900cps when downloading .LZH files. I have had users hit
  76. 3950cps on strait text files. So for me, unlocking my serial port is not a
  77. good option. But at least the true baud rate will be given and users will 
  78. get a fairly good estimate of the download time.
  79.  
  80.  
  81.  
  82.  
  83. Changes to FAX-IT
  84. =================
  85.  
  86. V1.0   No version number was given in the program or documents but
  87.        the first version was 1.0 in case you didn't know.
  88.  
  89. V1.2   I have added the ability to allow users to FORCE a FAX.
  90.        This will give users the ability to try to send a FAX outside of the
  91.        normal FAX hours and days that you have specified. You can turn this
  92.        feature on or off to suit your needs/desires.
  93.        
  94.        A new file FAX-Times has been added. This is where you will make
  95.        your changes to the days and hours that your system will dial out.
  96.        
  97.        If you are upgrading from an V1.0 you will need to replace the old
  98.        FAX-IT and AutoFAX files with the new ones and update the FAX-Times
  99.        files only. No other changes will need to be made to your existing
  100.        system. I would suggest replacing the FAX-Stat program too, but there
  101.        is only a little pause change so it doesn't make any functional 
  102.        differance.
  103.  
  104. V2.0   Improved routines to allow FAX-IT to run on the same line as TrapDoor
  105.        and not falsly attempt to send FAX Mail while GPFax is not running.
  106.  
  107.        Several new files and manu new user friendly features have been added
  108.        to make this package more powerful and easier to work with.
  109.  
  110. V2.1   Small bug fixed dealing with some systems not wanting to properly
  111.        force FAX mail through outside the FAXing hours.
  112.  
  113. V2.5   Small bug fixed that caused some FAX messages to get stuck in the 
  114.        out going directory.
  115.  
  116.        Added FAX number tracking.... Every time a FAX is successfully sent
  117.        out, a new directory "NUMBERS" will be checked for the number dialed.
  118.        If it exists, the message in the file is added to the status report
  119.        other wise this new number is added to the list. 
  120.  
  121. V2.8   Added the ability to display the list of FAX numbers known to the
  122.        system to any user who wants to see it.
  123.  
  124.        Cleaned up the HELP file to make it a bit more clear to the reader.
  125.  
  126.        Allowed the user to re-enter the phone number if it was entered
  127.        incorrectly or was not local (on a local only/limited system)
  128.        or if they used the HELP or LIST command.
  129.  
  130.        Several other little tweeks to make things work more smoothly.
  131.  
  132. V3.0   Created a CONFIG file named FAX-IT.cfg to make setting this system
  133.        up a bit easier. And reduce the chance of damaging the main program.
  134.        This also opens the way for me to rewrite the entire program into C.
  135.  
  136.        Added the ability for a user to enter the NAME of the location they
  137.        are faxing when asked for the number. If the NAME is known to the
  138.        system, then the phone number will automaticaly be used.
  139.  
  140.  
  141. Future Trying to figure out a way to allow your system to automaticaly
  142.        route in coming FAX mail to your users. This is going to be a
  143.        really hard one so don't hold your breath...
  144.  
  145.  
  146.  
  147.  
  148. Setting Up GPFax
  149. ================
  150.  
  151. These things must be set in order for GPFax to work properly as a FrontDoor
  152. and interface with FAX-IT and Excelsior....
  153.  
  154. 1) You MUST be running a version of GPFax between 2.00 and 2.30. The versions
  155.    after 2.30 don't seem to work quite correctly as a FrontDoor to the BBS
  156.    systems I have tried them on.
  157.    
  158. 2) In the envoronment settings you need to have these settings...
  159.    a. Shared must be checked (selected)
  160.    b. The "Modem Init" must be "AAT &F2 +FAA=1 S2=27 &K3 E0 W2 L1 N1 SC8=16"
  161.       (this is for SupraFAX modems only! Others are on their own)
  162.    c. Retry SHOULD be set to 4 or 5 to give the FAX a fair chance.
  163.    d. Redial Delay should be set to 1 to prevent callers from sneeking in
  164.    NOTE: If you are using a version lower than 2.30 remove the SC8 from
  165.          the "Modem Init" and make the redial delay larger (20 is good)
  166.  
  167. 3) In the option settings you need to have these settings...
  168.    a. AutoAnswer
  169.    b. FAX/DATA
  170.    c. ARexx DATA
  171.    NOTE: Any other settings are just extra and have no effect on the
  172.          FrontDoor as far as I can tell. So set them as you like.
  173.  
  174.  
  175.  
  176. Installing The Program
  177. ======================
  178.  
  179. Installing this program is quite simple. (or maybe not)
  180. Simply place ALL the files in the archive into a directory named "FAX-IT" 
  181. within your normal Doors directory.
  182.  
  183. If you would like to make use of the help file from the help command on the
  184. BBS, place a COPY of the Help.FAX file in your Text/English directory. The
  185. FAX-IT program will look for this help file in the FAX-IT directory so
  186. don't delete it from there. But the BBS can access any file named HELP. if
  187. it is in the proper TEXT directory.
  188.  
  189. You should also copy/move the RunBack program to your C: directory. It will
  190. allow most any program to run in background. It is required for proper
  191. operation of this program.
  192.  
  193. NOTE: I did not write RunBack... I am not even sure where I got it from. I
  194.       am sure it came off of one of the ShareWare collections, but it didn't
  195.       have any docs with it. This is not the same as the DOS 1.3 version. This
  196.       is for use with DOS 2.0 or higher only.
  197.  
  198.  
  199. You can either run this program from your normal DOORS area or make it a
  200. normal command or both. If you make it a normal command, I sugest you make 
  201. it a Global command and make an entry in your EX.BBSMenus file like this...
  202.  
  203.         675,    FAX,    0,   "1-32",   "\#0Doors:FAX-IT/FAX-IT\"
  204.  
  205. ...also, in your TEXT.WELCOME.USER file, add this...
  206.  
  207.         \#0Doors:FAX-IT/FAX-Stat\
  208.  
  209. ...of course, the paths listed here would depend on what you call your 
  210. DOORS path. And the access levels would be up to you to determine as well. 
  211. But this would give all users access to the FAX messaging program.
  212.  
  213.  
  214. If you are leaving the FAX modem just sit there and it is not a front door,
  215. you are done at this point. Well at least it will work. (Customize it!)
  216.  
  217. If you are like me and use the FAX modem as a front door program, you need
  218. to add four (4) lines to your DataCall.gpf file in the GPFax: directory. 
  219. They are as follows...
  220.  
  221.   1.  Shell Command 'C:Echo >T:FAXnode ""'
  222.   2.  Shell Command 'delete t:FAXnode'
  223.   3.  Shell Command 'Run RX Doors:Fax-It/AutoFAX.gpf'
  224.   
  225. Line 1 MUST be placed just after the OPTIONS RESULTS line.
  226.  
  227. Lines 2 and 3 must be the last two lines of the script. If you have
  228. placed the files in another directory, line 3 may need to be altered. 
  229.  
  230. DO NOT ALTER LINES 1 or 2! The program may malfunction if you do! These
  231. two lines keep the other modules of the FAX-IT program from accessing the 
  232. GPFax while it is already in use.
  233.  
  234.  
  235. NOTE: I have included a complete and ready to use DataCall.gpf script in
  236.       this archive. If you want to use it that is fine and it should not
  237.       require any alterations. But double check it before using it.
  238.       
  239.       
  240.       
  241.  
  242.  
  243. Customization
  244. =============
  245.  
  246. There are several files in the FAX-IT directory that you will need to alter
  247. to fit your BBS and your personal tastes. Here I will explain what files 
  248. need to be changed and what to change.
  249.  
  250.   1. FAX-IT           (The main program interface with the BBS)
  251.      AutoFAX.gpf      (The program that converts & sends the FAX)
  252.  
  253.          ---- DO NOT CHANGE ANY PART OF THESE TWO FILES!!! ----
  254.   
  255.  
  256.   2. FAX-Times
  257.  
  258.      a. Change the first line to reflect the actual hours you will
  259.         be attempting to send the FAX messages out. This is not going to
  260.         limit the times the users can enter their FAX messages, simply
  261.         limit the hours your system will try to dial out to send the FAX.
  262.         
  263.      b. Change the second line to reflect the actual days of the week 
  264.         you will be attempting to send the FAX messages. This is the same
  265.         idea as the HOURS variable. 
  266.         
  267.         (Personaly, I only send FAX messages from 8am-5pm Mon-Fri)
  268.      
  269.         Your users will be able to write FAX mail any time of the day or
  270.         night on any day of the week. The FAX-Times file only keeps the
  271.         AutoFAX.gpf program from dialing out. The FAX mail will be sent
  272.         at the first available FAX time.
  273.         
  274.         
  275.  
  276.   3. FAX-IT.cfg      (The configuration file for FAX-IT)
  277.   
  278.      a. Change the ForceFAX variable. This can be set to YES or NO.
  279.         If you say YES, then the user can ellect to try to send the FAX
  280.         outside of the normal FAX times. If you are actualy turning GPFax
  281.         off at some time during the day, DO NOT set this to YES. A system
  282.         crash could be encountered or at least no FAX will be sent. Only
  283.         set this to YES if you leave GPFax running 24 hours a day.
  284.  
  285.      b. Change the LOCALONLY variable. This can be set to YES or NO.
  286.         If you say YES, then only local numbers found in the LOCALPREFIX
  287.         variable will be allowed to be entered.
  288.         
  289.      c. LOCALPREFIX needs to contain EVERY prefix that can be dialed from
  290.         your location without requiring a 1 to be dialed first. This is
  291.         used to keep people from calling long distance numbers and lets 
  292.         the program identify when and when not to place a 1 in front of
  293.         the phone number.
  294.  
  295.      d. ALLOWLONG will hold the access group numbers for any access level
  296.         you want to be able to over ride the local only setting. Each
  297.         level must be seperated by the - character.
  298.         
  299.      e. TIMEMSG is a simple message that will notify the users of the 
  300.         actual times that you allow FAX messages to be sent out. This is
  301.         just a message. It will not force any messages to be sent or not
  302.         to be sent at any time.
  303.         
  304.      f. SAREA should hold the area code you are calling from. This will
  305.         allow the program to remove this number from any number that is
  306.         trying to be dialed. If you live in a location like Oregon where
  307.         every long distance number even within the same area code must
  308.         have the area code listed when dialing, make this SAREA = "###"
  309.         to force the area code to be included with the phone number.
  310.         
  311.      g. SPICT should be the full file path and name of a 2 color IFF image
  312.         you want attached to the top of EVERY cover page sent out. If you
  313.         don't want any picture attached to the cover page, make this
  314.         SPICT = "" and no image will be included. REMEMBER, the first two
  315.         characters in this variable MUST BE \G or the path and file name
  316.         will be added to the cover not the picture.
  317.         
  318.      h. SNUM, SNAME, and SLOCAL should reflect your BBS name, phone number,
  319.         and location. You can add some extra text to these if you like too.
  320.         
  321.      i. SMESSAGE is a SHORT little message that is added to each cover page
  322.         to give a little information about your BBS. KEEP IT SHORT! This
  323.         must fit on one line in your text editor or it may not all get used.
  324.         
  325.      
  326.   4. FAX-IT.Welcome  (A text file that is displayed to all users)
  327.  
  328.      a. You can totaly re-write this file. It will be displayed to every
  329.         user that accesses the FAX-IT program. It is displayed at the
  330.         start of the program.
  331.   
  332.   
  333.   5. GW.IFF            (This is a 2 color IFF picture)
  334.   
  335.      a. This should be replaced totaly! Place your own 2 color INTERLACED
  336.         IFF image in here. You should use something like DPAINT to create
  337.         this image. It must be a BLACK image on a WHITE background for the
  338.         best result. You should make your image no larger than 1/2 the 
  339.         screen height to keep from forcing your cover onto 2 pages. Also,
  340.         if you save the image as a BRUSH not a full screen you will be much
  341.         better off. The image will be automaticaly centered at the top of
  342.         the cover page. You are free to rename the file to anything you 
  343.         like as long as it matches the name you selected for the SPICT 
  344.         variable in the FAX-IT script.
  345.  
  346.  
  347.   6. TryFAX            (This is a DOS script to KICK the 1st FAX out)
  348.   
  349.      a. You should only need to alter the WAIT UNTIL command to match
  350.         the time of your first available FAX message transmition. This file
  351.         will sit in memory and every day at this time call the AutoFAX.gpf
  352.         program to see if any FAX messages need to be sent. It is simply
  353.         a way to kick start the process each morning. If it calls AutoFAX.gpf
  354.         and it is not a day for FAXing, no harm is done. No FAX will be
  355.         sent.
  356.         
  357.         
  358.   7. S:User-Startup  or S:Startup-Sequence or S:BBS-Startup
  359.   
  360.      a. The file you change depends on what file you are calling Excelsior
  361.         from each time you boot the system. Make this addition just after
  362.         you make the call to Excelsior...
  363.         
  364.            RunBack Execute Doors:FAX-IT/TryFAX
  365.  
  366.         This will place the TryFAX in memory and let it do it's thing 
  367.         without you needing to mess with it any more.
  368.  
  369.  
  370.   8. This is something you may need to keep editing...
  371.  
  372.      Each time a new FAX number is dialed and a FAX is properly sent, a file
  373.      will be created in the FAX-IT/Numbers directory. The file name will be
  374.      the phone number dialed. You may edit the file that is created to hold
  375.      any information you would like added to the user's status report the
  376.      next time that number is successfully FAXed to. Once you edit any one
  377.      you don't need to edit it again. Heck, you never really NEED to edit it
  378.      at all, but that is up to you. This just turned out to be a great
  379.      feature and I think you will like it too. It will help your users
  380.      who the phone number belongs to and more importantly, it helps you
  381.      track your calls out.
  382.  
  383.  
  384.  
  385. NOTE:   If you have decided to make the FAX-IT program a command and not
  386.         a DOOR, you may want to go through some of your menu files and add
  387.         information about the FAX command. This is up to you though.
  388.         
  389.         
  390.   *** NO MORE FILES TO ALTER ***
  391.  
  392.           ---- I know it is a lot, but this is really a very complex
  393.                task to pull off. Especialy if you are running a multi-node
  394.                system. This program is tested and running on a 3 node 
  395.                BBS right now so there should be no problems.
  396.  
  397.  
  398.  
  399. Sharing With TrapDoor
  400. =====================
  401.  
  402. Three things you should know about first...
  403.  
  404. First:  if you have two high speed lines, make life easy and use one for
  405.         TrapDoor and one for GPFax. You will be much happier.
  406.  
  407. Second: You MUST be using some type of CRON program to schedule events.
  408.  
  409. Third:  GPFax and TrapDoor MUST NOT be on at the exact same time!!! 
  410.  
  411.  
  412.  
  413. Now that that is said, there are two sample scripts included in this archive
  414. named Start.FAX and Start.TD and they actualy DOS scripts. You will need them
  415. to start the right program at the right time. There is also an ARexx script
  416. named FAX-Trap for starting the right program at the right time in the case
  417. of a reboot. Here is how you use these programs.
  418.  
  419.  
  420. 1) Modify the variables StartFAX and StartTD in the FAX-Trap script.
  421.    These two variables will determine what program is launched at BOOT time.
  422.    
  423.    StartFAX is the first moment of the day that you want to allow FAX mail to
  424.    come IN to your system from another location. StartTD is the time that the
  425.    last FAX would be received and GPFax would be closed down to make room for
  426.    TrapDoor.
  427.    
  428.  
  429. 2) User-Startup, Startup-Sequence, or BBS-Startup 
  430.    (same script used above to start Excelsior and TryFAX)
  431.    
  432.    RX Doors:FAX-IT/Start.FAX
  433.    
  434.    This should be one of the last commands in your script to allow the other
  435.    programs a chance to get set up. Personaly, I recommend a small WAIT
  436.    just before this command is executed.
  437.    
  438.  
  439. 3) In your CRON you will need to call each of the scripts Start.FAX and 
  440.    Start.TD at the proper time. You will need to refer to your CRON documents
  441.    to determine the correct methode for setting it up. I am using DCRON
  442.    since it came with Excelsior. My entries look like this...
  443.    
  444.    0  4  *  *  *  Execute Doors:FAX-IT/Start.FAX
  445.    0 20  *  *  *  Execute Doors:FAX-IT/Start.TD
  446.    
  447.    This allows GPFax to be online to answer FAX calls and BBS calls from 4am
  448.    to 8pm every day. You may if you like reduce these hours to match your
  449.    FAX dial out hours. I like my system to be able to receive FAX mail longer
  450.    than it can send. You MUST keep GPFax on line as long as you are allowing
  451.    out going FAX mail to be sent off your system. The programs won't crash, but
  452.    it is not a good idea to have the programs trying to access a program that 
  453.    isn't there. and your users won't like it either.
  454.  
  455.  
  456. 4) Modify Start.FAX if you need to. 
  457.    If you have instructed TrapDoor to use any port name other than "TrapDoor" 
  458.    you will need to modify Start.FAX so it knows the correct port name. The 
  459.    modification would be in the first. Replace TrapDoor with the correct
  460.    port name. If you have not changed the port name in TrapDoor, don't worry 
  461.    about this step.
  462.  
  463.  
  464. 5) As usual, if your paths are not set up like mine are, you will need to 
  465.    modify the paths used in each of the three scripts Start.FAX, Start.TD,
  466.    and FAX-Trap. They are quite easy to modify.
  467.    
  468.  
  469. 6) Enjoy your system! You are done! (fingers crossed)
  470.  
  471.  
  472. NOTE: As far as the FIDO node list is conserned, if you are running FAX-IT
  473.       and TrapDoor on the same line you will need to be a Non-CrashMail system
  474.       since TrapDoor is not going to be running 24 hours. So it is just as
  475.       well to leave GPFax on line all the time accept for during the
  476.       Zone Mail Hours. You might give TrapDoor and extra 1/2 hour on either
  477.       side of this time if you like, but no systems will be sending CrashMail
  478.       to you. So you can now see why a seperate line for TrapDoor would be
  479.       the best way to go.
  480.  
  481.  
  482. Added Information on TrapDoor
  483. =============================
  484.  
  485. If you are having problems with your system hanging on you, you should set
  486. the "SLOWMODEM" setting in your TrapDoor.cfg file to 10 or 15. Maynbe even a
  487. little higher. This will slow down the information being sent to the modem
  488. and keep it from being over run.
  489.  
  490.  
  491. Added information on NetMail
  492. ============================
  493.  
  494. If you are confused about how to send NetMail to someone through Excelsior,
  495. don't worry, the manual doesn't tell you what you need to know.
  496.  
  497. NetMail is a private message sent from one system to another. You and your
  498. users would send it as EMail on the BBS. The format is like so...
  499.  
  500.            {send to name} >{FIDO address}
  501.   -demo-   Glenn Schworak >1:3406/32
  502.  
  503. This will send a message directly to me. But remember, this is not an ECHO.
  504. It is sent as EMail. (usualy SM on a stock Excelsior system)
  505.  
  506.       
  507.  
  508.  
  509. **************************************************************************
  510.  
  511.  
  512.  
  513. Distribution
  514. ============
  515.  
  516. This program may be freely distributed as long as the files are not 
  517. altered in any way other than the methode of archival. There must be no 
  518. fees charged for this program other than the minimal copying fee normaly 
  519. charged by user groups. This program may be added to any disk collections 
  520. such as Fred Fish.
  521.  
  522.  --- NO WARRANTY EXPRESSED OR IMPLIED. USE THIS AT YOUR OWN RISK ---
  523.  
  524.  
  525.  
  526.     Distribution: ShareWare
  527.              Fee: $20.00
  528.  
  529.  
  530. Any of my programs will be accessable in their latest versions on
  531. your first call to my BBS.
  532.  
  533.  
  534.          Send the fee and any other items to:    Glenn J. Schworak
  535.                                                  1710 Lee Street SE
  536.          / US Funds prefered \                   Salem, Oregon 97302 USA
  537.          \ Canadian accepted /         FAX/BBS   (503) 581-6524
  538.                                            Voice (503) 399-7518
  539.  
  540.  
  541.  
  542.  
  543.  
  544. **************************************************************************
  545.  
  546.  
  547.  
  548. NOTE: If you are going to rewrite this set of scripts for another BBS
  549.       program (such as CNet or DLG for example) DO NOT DO NOT DO NOT
  550.       distribute it until you re-archive all the required files and send
  551.       me a copy. You may take credit for any changes you make, but please
  552.       make sure I get the original credit.
  553.       
  554.       Also, please document your changes clearly. I would like to see
  555.       an addition to this file or a seperate text file with all the
  556.       changes mentioned. Thanks!
  557.